Spring MVC Cookbook by 2016

Spring MVC Cookbook by 2016

Author:2016
Language: eng
Format: epub, mobi
Publisher: Packt Publishing


The AuthenticationManager interface

First of all, AuthenticationManager is a single-method interface:

public interface AuthenticationManager { Authentication authenticate(Authentication authentication) throws AuthenticationException; }

Spring Security provides one implementation: ProviderManager. This implementation allows us to plug in several AuthenticationProviders. The ProviderManager tries all the AuthenticationProviders in order, calling their authenticate method. The code is as follows:

public interface AuthenticationProvider { Authentication authenticate(Authentication authentication) throws AuthenticationException; boolean supports(Class<?> authentication); }



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.